package com.company.oa.announcement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.oa.announcement.dto.TemplateDTO;
import com.company.oa.announcement.entity.AnnouncementTemplate;

public interface AnnouncementTemplateService extends IService<AnnouncementTemplate> {
    
    IPage<AnnouncementTemplate> getTemplatePage(int page, int size, AnnouncementTemplate template);
    
    boolean createTemplate(TemplateDTO templateDTO, Long userId, String userName);
    
    boolean updateTemplate(TemplateDTO templateDTO);
    
    boolean deleteTemplate(Long id);
} 